PDF Plugin for Xojo

PDFDocument.LoadTrueTypeFont Method (console safe)

Loads a TrueType font TrueType font (.ttc) collection file.

LoadTrueTypeFont(
   f as FolderItem,
   index as Integer) as Font

Parameters

f
Path to the Font file.
index
Index of the font inside the file to use.

Returns

Font
The font or nil if there was error.

Remarks

This must be TrueType font with the extension .ttc. Note: this must be unicode capable TrueType font.

See Also

PDFDocument Class